<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="icon" th:href="@{/static/console/common/images/favicon.ico}">
<!--    <link rel="stylesheet" type="text/css" th:href="@{/static/console/common/layui/css/layui.css}">-->
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/common/layui-2.9.1/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/element/index.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/css/public1.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/datepicker/jquery-datePicker.css}" />
    <title>原材过磅单</title>
    <style>

        .addModal .msgBox {width: 100%;height: 100%;left: 10%;bottom: inherit;overflow: auto;}
    </style>
</head>
<script th:inline="javascript">
    const storageList = [[${storageList}]]
    const weightTypeList = [[${weightTypeList}]]
    const materialList = [[${materialList}]]
    const orgList = [[${orgList}]]
</script>
<body>
<input th:value="${menuRole.isDelete}" class="isDelete" style="display: none"/>
<input th:value="${menuRole.isUpdate}" class="isUpdate" style="display: none"/>
<input th:value="${menuRole.isInsert}" class="isInsert" style="display: none"/>
<input th:value="${isCheck}" class="isCheck" style="display: none"/>
<input th:value="${isAdmin}" class="isAdmin" style="display: none"/>
<input th:value="${isFinance}" class="isFinance" style="display: none"/>
<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <div class="layui-inline" style="display: none;">
                    <div class="layui-input-inline">
                        <select class="search-origin"  lay-filter="search-origin">
                            <!--                            <option value="">选择公司</option>-->
                            <option th:value="${org.id}" th:text="${org.originName}" th:each="org:${orgList}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <div class="layui-input-inline" style="width: 300px;">
                        <input type="text" placeholder="检索关键字" class="layui-input search-text">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-supplier" lay-search="" lay-filter="search-supplier" style="width: 220px;">
                            <option value="">选择供应商</option>
                            <option th:value="${item.id}" th:text="${item.fullName}" th:each="item:${supplierList}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-material"  lay-search="" lay-filter="search-material">
                            <option value="">选择材料</option>
                            <option th:value="${item.id}" th:text="${item.fullName}" th:each="item:${materialList}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" placeholder="检索开始时间" class="layui-input search-startTime" id="search-startTime">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" placeholder="检索结算时间" class="layui-input search-endTime" id="search-endTime">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-searchType"  lay-filter="search-searchType">
                            <option value="">选择过磅类型</option>
                            <option value="0">已完成过磅</option>
                            <option value="1">未完成过磅</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <a href="javascript:void(0)" class="layui-btn layui-btn-md layui-btn-danger btn-query" lay-filter="btn-query">
                        <i class="layui-icon layui-icon-search"></i>
                        查询
                    </a>
                    <a href="javascript:void(0)" type="reset" class="layui-btn layui-btn-normal btn-add" lay-filter="btn-add">
                        <i class="layui-icon">&#xe654;</i>
                        添加
                    </a>
                    <a href="javascript:void(0)" type="reset" class="layui-btn layui-btn-warm btn-check" lay-filter="btn-check">
                        <i class="layui-icon layui-icon-edit"></i>
                        审核
                    </a>
                    <input class="switchDisplay" style="display: none;" type="checkbox" name="open" lay-skin="switch" lay-filter="switchDisplay" title="ON|OFF">
                </div>
            </div>
        </form>
    </div>
</div>
<div class="layui-card">
    <div class="layui-card-body">
        <table class="layui-hide" id="body-list" lay-filter="body-list"></table>
    </div>
</div>
<!--添加弹窗-->
<div class="msgModal addModal" id="material-body">
    <div class="msgBox">
        <div class="msgBox-title">
            <h3 style="text-align: left; padding-left: 80px;">添加过磅单</h3>
            <a class="close" href="javascript:void(0);"><img src="/static/console/img/close-btn.png" /></a>
        </div>
        <div class="msgBox-con">
            <form class="layui-form" style="width: 80%;">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">订单编号</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-code" readonly placeholder="过磅订单编号">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">公司</label>
                        <div class="layui-input-inline">
                            <select class="add-origin" lay-filter="add-origin">
<!--                                <option value="">选择公司</option>-->
                                <option th:value="${org.id}" th:text="${org.originName}" th:each="org:${orgList}"></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">供应商</label>
                        <div class="layui-input-inline">
                            <select class="add-supplier" lay-search="" lay-filter="add-supplier" style="width: 220px;">
                                <option value="">选择供应商</option>
                                <option th:value="${item.id}" th:text="${item.fullName}" th:each="item:${supplierList}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">材料</label>
                        <div class="layui-input-inline">
                            <select class="add-material"  lay-search="" lay-filter="add-material">
                                <option value="">选择材料</option>
                                <option th:value="${item.id}" th:text="${item.fullName}" th:each="item:${materialList}"></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">仓位</label>
                        <div class="layui-input-inline">
                            <select class="add-storage"  lay-search="" lay-filter="add-storage">
                                <option value="">选择仓位</option>
                                <option th:value="${item.id}" th:text="${item.name}" th:each="item:${storageList}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">车牌号</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-carNo" placeholder="请输入车牌号">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">毛重(吨)</label>
                        <div class="layui-input-inline">
                            <input type="text" value="0" class="layui-input add-gross" lay-verify="number" placeholder="请输入毛重(吨)">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">净重(吨)</label>
                        <div class="layui-input-inline">
                            <input type="text" value="0" class="layui-input add-netWeight" lay-verify="number" placeholder="请输入净重(吨)">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">皮重(吨)</label>
                        <div class="layui-input-inline">
                            <input type="text" value="0" class="layui-input add-tare" lay-verify="number" placeholder="请输入皮重(吨)">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">供方毛重(吨)</label>
                        <div class="layui-input-inline">
                            <input type="text" value="0" class="layui-input add-supplierGross" lay-verify="number" placeholder="请输入供方毛重(吨)">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">供方净重(吨)</label>
                        <div class="layui-input-inline">
                            <input type="text" value="0" class="layui-input add-supplierNetWeight" lay-verify="number" placeholder="请输入供方净重(吨)">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">供方皮重(吨)</label>
                        <div class="layui-input-inline">
                            <input type="text" value="0" class="layui-input add-supplierTare" lay-verify="number" placeholder="请输入供方皮重(吨)">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">入场时间</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-inTime" id="add-inTime" readonly placeholder="请选择入场时间">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">出场时间</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-outTime" id="add-outTime" readonly placeholder="请选择出场">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">电话</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-phone" placeholder="请输入电话(如需电子磅单请必填)">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">驾驶员</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-driver" placeholder="请输入驾驶员姓名">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">是否审核</label>
                        <div class="layui-input-inline">
                            <select class="add-isCheck" >
                                <option value="0">已审核</option>
                                <option value="1">未审核</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">是否结算</label>
                        <div class="layui-input-inline">
                            <select class="add-isBill" >
                                <option value="0">结算</option>
                                <option value="1">不结算</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block" style="margin-left: 80px;">
                        <textarea placeholder="请输入内容" class="layui-textarea remark" style="resize: none;"></textarea>
                    </div>
                </div>
                <div class="layui-form-item" style="text-align: center;">
                    <div class="">
                        <a class="layui-btn btn-submit" lay-submit lay-filter="addBtns">保存</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

</body>

<script type="text/javascript" th:src="@{/static/console/assets/js/jquery-3.2.1.min.js}"></script>
<!--<script type="text/javascript" th:src="@{/static/console/common/layui/layui.js}"></script>-->
<script type="text/javascript" th:src="@{/static/console/common/layui-2.9.1/layui.js}"></script>
<script type="text/javascript" th:src="@{/static/console/js/pages/base.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/vue.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/element/index.js}"charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/console/datepicker/jquery-datePicker.js}"charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/console/js/pages/material/material-weight.js}" charset="utf-8"></script>
<script type="text/javascript">

</script>

</html>